/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package excelprocess;

import java.util.Properties;

/**
 *
 * @author zhouchen-010
 */
public class main {
  /*
    public static void main(String[] args) {
        // TODO code application logic here
        //多系统
        String winpath = "D:\\test.xls";
        String macpath = "/Users/ericzhou/Dropbox/worksheet.xls";
        String newpath="";
        Properties props=System.getProperties(); 
        String path=null;
        String osName = props.getProperty("os.name");
        System.out.println("This is "+osName);
        String MacOsName = "Mac OS X";
        
        if (osName.equals(MacOsName)){
            System.out.println(osName);
            path=macpath;
        }else{
            path=winpath;
        }
        
        ExcelProcess excelProcess= new ExcelProcess();
        excelProcess.setPath(path);
        
        System.out.println("Path="+path);
        
        System.out.println("Start process");
        
        //这里修改要查询的字段位置，拼接的字段位置和查询的字段内容
        String result=excelProcess.FindCell(1,12);
        System.out.println(result);
        
        StringToFile toTXT=new StringToFile(result, "D:\\result.txt");
        toTXT.write();
        
    }  
    * */
}
